package com.springcloud.wujie_study_day02_eureka_ribbon.controller;

import com.springcloud.wujie_study_day02_eureka_ribbon.service.ServerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname RibbonController
 * @Description TODO
 * @Date 2019/5/23 17:05
 * @Created by wujie
 */
@RestController
public class RibbonController {

    @Autowired
    private ServerService serverService;

     @RequestMapping(value = "testRibbon")
      public String testRibbon(@RequestParam String name){
         return serverService.getInfo(name);
      }

}
